home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
TextEngineSystem.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
46KB
|
1,426 lines
/*
* This file was generated by the SOM Compiler.
* FileName: TextEngineSystem.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
/*
*
* Copyright: © 1994,1995 by Apple Computer, Inc.
* All rights reserved.
*
* 10H9767, 10H9769 (C) COPYRIGHT International Business Machines Corp. 1992,1994
* All Rights Reserved
* Licensed Materials - Property of IBM
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
* SOMClass: System Object Model base metaclass
*/
#ifndef SOM_TSystemTextEngine_xh
#define SOM_TSystemTextEngine_xh
class TSystemTextEngine;
#define TSystemTextEngine_MajorVersion 0
#define TSystemTextEngine_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Types.h>
#include <Collections.h>
#include <Drag.h>
#include <Events.h>
#include <Quickdraw.h>
#include <TextObjects.h>
#include <MixedMode.h>
#include <TextCommon.h>
#include <TextEngineTypes.h>
#include <TextEdit.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef TSystemTextEngine_API
#define TSystemTextEngine_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define TSystemTextEngineCClassData TSystemTextEngineClassData
#define TSystemTextEngineNewClass(major,minor) somNewVersionedClassReference(TSystemTextEngine,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define TSystemTextEngineMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the TSystemTextEngine class object, and the methods it introduces. */
SOMEXTERN struct TSystemTextEngineClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitTextInstance;
somMToken SetTextFrameDimensions;
somMToken GetTextFrameDimensions;
somMToken SetTextViewFrame;
somMToken GetTextViewFrame;
somMToken SetTextMargins;
somMToken GetTextMargins;
somMToken RefreshText;
somMToken EnableDrawingText;
somMToken DisableDrawingText;
somMToken IsDrawingTextEnabled;
somMToken AboutToImage;
somMToken EndImaging;
somMToken SetWholeTextTo;
somMToken GetWholeTextSize;
somMToken WriteWholeTextToPtr;
somMToken GetWholeScrapStyleCount;
somMToken WriteWholeScrapStyleToPtr;
somMToken GetStorageSizeForTextDataStructure;
somMToken SaveDataStructureToPtr;
somMToken ReadDataStructureFromPtr;
somMToken SetText;
somMToken InsertText;
somMToken DeleteText;
somMToken GetText;
somMToken SelectTextRange;
somMToken GetSelectedTextRange;
somMToken RevealTextRange;
somMToken ScrollTextViewTo;
somMToken GetScroll;
somMToken GetTextHeight;
somMToken SetTextAttribute;
somMToken GetTextAttribute;
somMToken NewTextAttributeIterator;
somMToken TextAttributeIterateForward;
somMToken DisposeTextAttributeIterator;
somMToken SetTextCollectionAttribute;
somMToken GetSharedTextAttribute;
somMToken GetNextTextElement;
somMToken GetPriorTextElement;
somMToken GetEnclosingTextElement;
somMToken ByteOffsetToPixel;
somMToken PixelToByteOffset;
somMToken ByteOffsetToWord;
somMToken NthWordInRange;
somMToken LineToByteOffsets;
somMToken ByteOffsetToLine;
somMToken ByteOffsetToParagraph;
somMToken GetCountChars;
somMToken GetCountWords;
somMToken GetCountLines;
somMToken GetCountParagraphs;
somMToken Cut;
somMToken Copy;
somMToken CanPaste;
somMToken Paste;
somMToken Clear;
somMToken IsUndoActive;
somMToken UndoLastEditCommand;
somMToken DragEnteredViewedText;
somMToken DragInViewedText;
somMToken DragLeaveViewedText;
somMToken Drop;
somMToken SetTextChangedFlag;
somMToken ResetTextChangedFlag;
somMToken IsTextChanged;
somMToken GetHilileRegionHandle;
somMToken MouseIsDown;
somMToken MouseStopped;
somMToken MouseIsUp;
somMToken MouseHasMoved;
somMToken HandleTextAEvent;
somMToken TextGainKeyboardFocus;
somMToken TextGiveUpKeyboardFocus;
somMToken HasKeyboardFocus;
somMToken TextInputObjectChanged;
somMToken GetAETable;
somMToken SetTextMouseDownTrackActionRoutine;
somMToken EnableUICommand;
somMToken DisableUICommand;
somMToken IsUICommandEnabled;
somMToken DoIDleAction;
somMToken reserved0;
somMToken reserved1;
} SOMDLINK TSystemTextEngineClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(TSystemTextEngine_Class_Source) && !defined(SOM_Module_textenginesystem_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list TSystemTextEngineClassData
#endif
#endif
/*
* -- Typedefs for TSystemTextEngine Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_InitTextInstance)(TSystemTextEngine *somSelf, Environment *ev,
CGrafPtr port,
Rect* bounds,
OptionBits textEngineOptions);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SetTextFrameDimensions)(TSystemTextEngine *somSelf, Environment *ev,
UInt32 width,
UInt32 height);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetTextFrameDimensions)(TSystemTextEngine *somSelf, Environment *ev,
UInt32* width,
UInt32* height);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SetTextViewFrame)(TSystemTextEngine *somSelf, Environment *ev,
Rect* viewFrameRect);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetTextViewFrame)(TSystemTextEngine *somSelf, Environment *ev,
Rect* viewFrameRect);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SetTextMargins)(TSystemTextEngine *somSelf, Environment *ev,
Rect* marginOffsets);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetTextMargins)(TSystemTextEngine *somSelf, Environment *ev,
Rect* marginOffsets);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_RefreshText)(TSystemTextEngine *somSelf, Environment *ev,
CGrafPtr whichPort,
Rect* qDRectToUpdate);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_EnableDrawingText)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_DisableDrawingText)(TSystemTextEngine *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_IsDrawingTextEnabled)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_AboutToImage)(TSystemTextEngine *somSelf, Environment *ev,
Rect* pageDimensions);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_EndImaging)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_EnableUICommand)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_DisableUICommand)(TSystemTextEngine *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_IsUICommandEnabled)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_DoIDleAction)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SetWholeTextTo)(TSystemTextEngine *somSelf, Environment *ev,
Ptr textPtr,
ByteCount textSizeInBytes,
StScrpPtr styleScrapPtr);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetWholeTextSize)(TSystemTextEngine *somSelf, Environment *ev,
ByteCount* textSizeInBytes);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_WriteWholeTextToPtr)(TSystemTextEngine *somSelf, Environment *ev,
Ptr textPtr,
ByteCount storageSize);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetWholeScrapStyleCount)(TSystemTextEngine *somSelf, Environment *ev,
ItemCount* nRuns);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_WriteWholeScrapStyleToPtr)(TSystemTextEngine *somSelf, Environment *ev,
StScrpPtr styleScrapPtr,
ItemCount nRuns);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetStorageSizeForTextDataStructure)(TSystemTextEngine *somSelf, Environment *ev,
ByteCount* textInstanceStorageSizeInBytes);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SaveDataStructureToPtr)(TSystemTextEngine *somSelf, Environment *ev,
Ptr theStorage,
ByteCount storageSizeAvailable);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_ReadDataStructureFromPtr)(TSystemTextEngine *somSelf, Environment *ev,
Ptr theStorage,
ByteCount storageSize);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SetText)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextObject theText);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_InsertText)(TSystemTextEngine *somSelf, Environment *ev,
TextObject theText);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_DeleteText)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetText)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextObject* newTextObject);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SelectTextRange)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetSelectedTextRange)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset* startIndex,
ByteOffset* endIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_RevealTextRange)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
boolean revealBegin);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_ScrollTextViewTo)(TSystemTextEngine *somSelf, Environment *ev,
UInt32 dh,
UInt32 dv);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetScroll)(TSystemTextEngine *somSelf, Environment *ev,
UInt32* dh,
UInt32* dv);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetTextHeight)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
UInt32* height);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SetTextAttribute)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAttributeTag theAttribute,
void* theValuePtr,
ByteCount theValueSize);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetTextAttribute)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAttributeTag theAttribute,
ByteCount theAvailableSize,
void** theValuePtr,
ByteCount* theValueSize);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_NewTextAttributeIterator)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttributeFilterCollection,
TextAttributeIteratorRef* iterationRef);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_TextAttributeIterateForward)(TSystemTextEngine *somSelf, Environment *ev,
TextAttributeIteratorRef iterationRef,
ByteOffset* startIndex,
ByteOffset* endIndex,
Collection textAttrCollection);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_DisposeTextAttributeIterator)(TSystemTextEngine *somSelf, Environment *ev,
TextAttributeIteratorRef iterationRef);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SetTextCollectionAttribute)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttrCollection);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetSharedTextAttribute)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttrCollection);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetNextTextElement)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset fromIndex,
TextIterationtype elmentType,
ByteOffset* startIndex,
ByteOffset* endIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetPriorTextElement)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset fromIndex,
TextIterationtype elmentType,
ByteOffset* startIndex,
ByteOffset* endIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetEnclosingTextElement)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset fromIndex,
TextIterationtype elmentType,
ByteOffset* startIndex,
ByteOffset* endIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_ByteOffsetToPixel)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset offset,
Point* pixel);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_PixelToByteOffset)(TSystemTextEngine *somSelf, Environment *ev,
Point* pixel,
ByteOffset* offset);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_ByteOffsetToWord)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
ByteOffset* endIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_NthWordInRange)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset startRangeOffset,
ByteOffset endRangeOffset,
ItemCount wordIndex,
ByteOffset* startIndex,
ByteOffset* endIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_LineToByteOffsets)(TSystemTextEngine *somSelf, Environment *ev,
ItemCount lineNo,
ByteOffset* startIndex,
ByteOffset* endIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_ByteOffsetToLine)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset offset,
ItemCount* lineNo);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_ByteOffsetToParagraph)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset offset,
ByteOffset* paragraphStartIndex,
ByteOffset* paragraphEndIndex);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetCountChars)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
UInt32* charCount);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetCountWords)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
UInt32* wordCount);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetCountLines)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
UInt32* lineCount);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetCountParagraphs)(TSystemTextEngine *somSelf, Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
UInt32* paragraphCount);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_Cut)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_Copy)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_Paste)(TSystemTextEngine *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_CanPaste)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_Clear)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_IsUndoActive)(TSystemTextEngine *somSelf, Environment *ev,
boolean* isActive,
EditCommandID* theCommand);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_UndoLastEditCommand)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_DragEnteredViewedText)(TSystemTextEngine *somSelf, Environment *ev,
DragReference theDrag,
boolean* acceptIt);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_DragInViewedText)(TSystemTextEngine *somSelf, Environment *ev,
DragReference theDrag);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_DragLeaveViewedText)(TSystemTextEngine *somSelf, Environment *ev,
DragReference theDrag);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_Drop)(TSystemTextEngine *somSelf, Environment *ev,
DragReference theDrag);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetHilileRegionHandle)(TSystemTextEngine *somSelf, Environment *ev,
RgnHandle* theRgn);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SetTextChangedFlag)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_ResetTextChangedFlag)(TSystemTextEngine *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_IsTextChanged)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_MouseIsDown)(TSystemTextEngine *somSelf, Environment *ev,
Point* qdMouseCoordinate,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_MouseHasMoved)(TSystemTextEngine *somSelf, Environment *ev,
Point* qdMouseCoordinate,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_MouseStopped)(TSystemTextEngine *somSelf, Environment *ev,
Point* qdMouseCoordinate,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_MouseIsUp)(TSystemTextEngine *somSelf, Environment *ev,
Point* qdMouseCoordinate,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_HandleTextAEvent)(TSystemTextEngine *somSelf, Environment *ev,
AEEventID eventID,
AppleEvent* appleEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_TextGainKeyboardFocus)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_TextGiveUpKeyboardFocus)(TSystemTextEngine *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_HasKeyboardFocus)(TSystemTextEngine *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_TextInputObjectChanged)(TSystemTextEngine *somSelf, Environment *ev,
LocaleIdentifier theLocaleID);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_GetAETable)(TSystemTextEngine *somSelf, Environment *ev,
AEHandlerTableRef* theTable);
typedef OSStatus (* SOMLINK somTD_TSystemTextEngine_SetTextMouseDownTrackActionRoutine)(TSystemTextEngine *somSelf, Environment *ev,
MouseDownInTextTrackProcPtr theMouseTrackProcPtr,
void* userData);
/*
* -- Typedefs for Inherited Methods
*/
typedef void (* SOMLINK somTD_TSystemTextEngine_somInit)(TSystemTextEngine *somSelf);
typedef void (* SOMLINK somTD_TSystemTextEngine_somUninit)(TSystemTextEngine *somSelf);
typedef SOMObject* (* SOMLINK somTD_TSystemTextEngine_somDuplicateReference)(TSystemTextEngine *somSelf);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_somCompareReference)(TSystemTextEngine *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_TSystemTextEngine_somRelease)(TSystemTextEngine *somSelf);
typedef void (* SOMLINK somTD_TSystemTextEngine_somFree)(TSystemTextEngine *somSelf);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_somCanDelete)(TSystemTextEngine *somSelf);
typedef SOMClass* (* SOMLINK somTD_TSystemTextEngine_somGetClass)(TSystemTextEngine *somSelf);
typedef corbastring (* SOMLINK somTD_TSystemTextEngine_somGetClassName)(TSystemTextEngine *somSelf);
typedef long (* SOMLINK somTD_TSystemTextEngine_somGetSize)(TSystemTextEngine *somSelf);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_somIsA)(TSystemTextEngine *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_somRespondsTo)(TSystemTextEngine *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_somIsInstanceOf)(TSystemTextEngine *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_somDispatch)(TSystemTextEngine *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_somClassDispatch)(TSystemTextEngine *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_somCastObj)(TSystemTextEngine *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_TSystemTextEngine_somResetObj)(TSystemTextEngine *somSelf);
typedef SOMObject* (* SOMLINK somTD_TSystemTextEngine_somPrintSelf)(TSystemTextEngine *somSelf);
typedef void (* SOMLINK somTD_TSystemTextEngine_somDumpSelf)(TSystemTextEngine *somSelf,
long level);
typedef void (* SOMLINK somTD_TSystemTextEngine_somDumpSelfInt)(TSystemTextEngine *somSelf,
long level);
}
#endif /* TSystemTextEngine_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for TSystemTextEngine
*/
class TSystemTextEngine : public SOMObject
{
public:
// TSystemTextEngine::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for TSystemTextEngine, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(TSystemTextEngine);
}
// TSystemTextEngine::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitTextInstance */
OSStatus InitTextInstance(Environment *ev,
CGrafPtr port,
Rect* bounds,
OptionBits textEngineOptions)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,InitTextInstance)
(this,ev,port,bounds,textEngineOptions);
}
/* method: SetTextFrameDimensions */
OSStatus SetTextFrameDimensions(Environment *ev,
UInt32 width,
UInt32 height)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SetTextFrameDimensions)
(this,ev,width,height);
}
/* method: GetTextFrameDimensions */
OSStatus GetTextFrameDimensions(Environment *ev,
UInt32* width,
UInt32* height)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetTextFrameDimensions)
(this,ev,width,height);
}
/* method: SetTextViewFrame */
OSStatus SetTextViewFrame(Environment *ev,
Rect* viewFrameRect)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SetTextViewFrame)
(this,ev,viewFrameRect);
}
/* method: GetTextViewFrame */
OSStatus GetTextViewFrame(Environment *ev,
Rect* viewFrameRect)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetTextViewFrame)
(this,ev,viewFrameRect);
}
/* method: SetTextMargins */
OSStatus SetTextMargins(Environment *ev,
Rect* marginOffsets)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SetTextMargins)
(this,ev,marginOffsets);
}
/* method: GetTextMargins */
OSStatus GetTextMargins(Environment *ev,
Rect* marginOffsets)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetTextMargins)
(this,ev,marginOffsets);
}
/* method: RefreshText */
OSStatus RefreshText(Environment *ev,
CGrafPtr whichPort,
Rect* qDRectToUpdate)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,RefreshText)
(this,ev,whichPort,qDRectToUpdate);
}
/* method: EnableDrawingText */
OSStatus EnableDrawingText(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,EnableDrawingText)
(this,ev);
}
/* method: DisableDrawingText */
OSStatus DisableDrawingText(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,DisableDrawingText)
(this,ev);
}
/* method: IsDrawingTextEnabled */
boolean IsDrawingTextEnabled(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,IsDrawingTextEnabled)
(this,ev);
}
/* method: AboutToImage */
OSStatus AboutToImage(Environment *ev,
Rect* pageDimensions)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,AboutToImage)
(this,ev,pageDimensions);
}
/* method: EndImaging */
OSStatus EndImaging(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,EndImaging)
(this,ev);
}
/* method: EnableUICommand */
OSStatus EnableUICommand(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,EnableUICommand)
(this,ev);
}
/* method: DisableUICommand */
OSStatus DisableUICommand(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,DisableUICommand)
(this,ev);
}
/* method: IsUICommandEnabled */
boolean IsUICommandEnabled(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,IsUICommandEnabled)
(this,ev);
}
/* method: DoIDleAction */
OSStatus DoIDleAction(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,DoIDleAction)
(this,ev);
}
/* method: SetWholeTextTo */
OSStatus SetWholeTextTo(Environment *ev,
Ptr textPtr,
ByteCount textSizeInBytes,
StScrpPtr styleScrapPtr)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SetWholeTextTo)
(this,ev,textPtr,textSizeInBytes,styleScrapPtr);
}
/* method: GetWholeTextSize */
OSStatus GetWholeTextSize(Environment *ev,
ByteCount* textSizeInBytes)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetWholeTextSize)
(this,ev,textSizeInBytes);
}
/* method: WriteWholeTextToPtr */
OSStatus WriteWholeTextToPtr(Environment *ev,
Ptr textPtr,
ByteCount storageSize)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,WriteWholeTextToPtr)
(this,ev,textPtr,storageSize);
}
/* method: GetWholeScrapStyleCount */
OSStatus GetWholeScrapStyleCount(Environment *ev,
ItemCount* nRuns)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetWholeScrapStyleCount)
(this,ev,nRuns);
}
/* method: WriteWholeScrapStyleToPtr */
OSStatus WriteWholeScrapStyleToPtr(Environment *ev,
StScrpPtr styleScrapPtr,
ItemCount nRuns)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,WriteWholeScrapStyleToPtr)
(this,ev,styleScrapPtr,nRuns);
}
/* method: GetStorageSizeForTextDataStructure */
OSStatus GetStorageSizeForTextDataStructure(Environment *ev,
ByteCount* textInstanceStorageSizeInBytes)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetStorageSizeForTextDataStructure)
(this,ev,textInstanceStorageSizeInBytes);
}
/* method: SaveDataStructureToPtr */
OSStatus SaveDataStructureToPtr(Environment *ev,
Ptr theStorage,
ByteCount storageSizeAvailable)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SaveDataStructureToPtr)
(this,ev,theStorage,storageSizeAvailable);
}
/* method: ReadDataStructureFromPtr */
OSStatus ReadDataStructureFromPtr(Environment *ev,
Ptr theStorage,
ByteCount storageSize)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,ReadDataStructureFromPtr)
(this,ev,theStorage,storageSize);
}
/* method: SetText */
OSStatus SetText(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextObject theText)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SetText)
(this,ev,startIndex,endIndex,theText);
}
/* method: InsertText */
OSStatus InsertText(Environment *ev,
TextObject theText)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,InsertText)
(this,ev,theText);
}
/* method: DeleteText */
OSStatus DeleteText(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,DeleteText)
(this,ev,startIndex,endIndex);
}
/* method: GetText */
OSStatus GetText(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextObject* newTextObject)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetText)
(this,ev,startIndex,endIndex,newTextObject);
}
/* method: SelectTextRange */
OSStatus SelectTextRange(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SelectTextRange)
(this,ev,startIndex,endIndex);
}
/* method: GetSelectedTextRange */
OSStatus GetSelectedTextRange(Environment *ev,
ByteOffset* startIndex,
ByteOffset* endIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetSelectedTextRange)
(this,ev,startIndex,endIndex);
}
/* method: RevealTextRange */
OSStatus RevealTextRange(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
boolean revealBegin)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,RevealTextRange)
(this,ev,startIndex,endIndex,revealBegin);
}
/* method: ScrollTextViewTo */
OSStatus ScrollTextViewTo(Environment *ev,
UInt32 dh,
UInt32 dv)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,ScrollTextViewTo)
(this,ev,dh,dv);
}
/* method: GetScroll */
OSStatus GetScroll(Environment *ev,
UInt32* dh,
UInt32* dv)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetScroll)
(this,ev,dh,dv);
}
/* method: GetTextHeight */
OSStatus GetTextHeight(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
UInt32* height)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetTextHeight)
(this,ev,startIndex,endIndex,height);
}
/* method: SetTextAttribute */
OSStatus SetTextAttribute(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAttributeTag theAttribute,
void* theValuePtr,
ByteCount theValueSize)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SetTextAttribute)
(this,ev,startIndex,endIndex,theAttribute,theValuePtr,theValueSize);
}
/* method: GetTextAttribute */
OSStatus GetTextAttribute(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAttributeTag theAttribute,
ByteCount theAvailableSize,
void** theValuePtr,
ByteCount* theValueSize)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetTextAttribute)
(this,ev,startIndex,endIndex,theAttribute,theAvailableSize,theValuePtr,theValueSize);
}
/* method: NewTextAttributeIterator */
OSStatus NewTextAttributeIterator(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttributeFilterCollection,
TextAttributeIteratorRef* iterationRef)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,NewTextAttributeIterator)
(this,ev,startIndex,endIndex,textAttributeFilterCollection,iterationRef);
}
/* method: TextAttributeIterateForward */
OSStatus TextAttributeIterateForward(Environment *ev,
TextAttributeIteratorRef iterationRef,
ByteOffset* startIndex,
ByteOffset* endIndex,
Collection textAttrCollection)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,TextAttributeIterateForward)
(this,ev,iterationRef,startIndex,endIndex,textAttrCollection);
}
/* method: DisposeTextAttributeIterator */
OSStatus DisposeTextAttributeIterator(Environment *ev,
TextAttributeIteratorRef iterationRef)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,DisposeTextAttributeIterator)
(this,ev,iterationRef);
}
/* method: SetTextCollectionAttribute */
OSStatus SetTextCollectionAttribute(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttrCollection)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SetTextCollectionAttribute)
(this,ev,startIndex,endIndex,textAttrCollection);
}
/* method: GetSharedTextAttribute */
OSStatus GetSharedTextAttribute(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttrCollection)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetSharedTextAttribute)
(this,ev,startIndex,endIndex,textAttrCollection);
}
/* method: GetNextTextElement */
OSStatus GetNextTextElement(Environment *ev,
ByteOffset fromIndex,
TextIterationtype elmentType,
ByteOffset* startIndex,
ByteOffset* endIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetNextTextElement)
(this,ev,fromIndex,elmentType,startIndex,endIndex);
}
/* method: GetPriorTextElement */
OSStatus GetPriorTextElement(Environment *ev,
ByteOffset fromIndex,
TextIterationtype elmentType,
ByteOffset* startIndex,
ByteOffset* endIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetPriorTextElement)
(this,ev,fromIndex,elmentType,startIndex,endIndex);
}
/* method: GetEnclosingTextElement */
OSStatus GetEnclosingTextElement(Environment *ev,
ByteOffset fromIndex,
TextIterationtype elmentType,
ByteOffset* startIndex,
ByteOffset* endIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetEnclosingTextElement)
(this,ev,fromIndex,elmentType,startIndex,endIndex);
}
/* method: ByteOffsetToPixel */
OSStatus ByteOffsetToPixel(Environment *ev,
ByteOffset offset,
Point* pixel)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,ByteOffsetToPixel)
(this,ev,offset,pixel);
}
/* method: PixelToByteOffset */
OSStatus PixelToByteOffset(Environment *ev,
Point* pixel,
ByteOffset* offset)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,PixelToByteOffset)
(this,ev,pixel,offset);
}
/* method: ByteOffsetToWord */
OSStatus ByteOffsetToWord(Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
ByteOffset* endIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,ByteOffsetToWord)
(this,ev,offset,startIndex,endIndex);
}
/* method: NthWordInRange */
OSStatus NthWordInRange(Environment *ev,
ByteOffset startRangeOffset,
ByteOffset endRangeOffset,
ItemCount wordIndex,
ByteOffset* startIndex,
ByteOffset* endIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,NthWordInRange)
(this,ev,startRangeOffset,endRangeOffset,wordIndex,startIndex,endIndex);
}
/* method: LineToByteOffsets */
OSStatus LineToByteOffsets(Environment *ev,
ItemCount lineNo,
ByteOffset* startIndex,
ByteOffset* endIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,LineToByteOffsets)
(this,ev,lineNo,startIndex,endIndex);
}
/* method: ByteOffsetToLine */
OSStatus ByteOffsetToLine(Environment *ev,
ByteOffset offset,
ItemCount* lineNo)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,ByteOffsetToLine)
(this,ev,offset,lineNo);
}
/* method: ByteOffsetToParagraph */
OSStatus ByteOffsetToParagraph(Environment *ev,
ByteOffset offset,
ByteOffset* paragraphStartIndex,
ByteOffset* paragraphEndIndex)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,ByteOffsetToParagraph)
(this,ev,offset,paragraphStartIndex,paragraphEndIndex);
}
/* method: GetCountChars */
OSStatus GetCountChars(Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
UInt32* charCount)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetCountChars)
(this,ev,offset,startIndex,charCount);
}
/* method: GetCountWords */
OSStatus GetCountWords(Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
UInt32* wordCount)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetCountWords)
(this,ev,offset,startIndex,wordCount);
}
/* method: GetCountLines */
OSStatus GetCountLines(Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
UInt32* lineCount)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetCountLines)
(this,ev,offset,startIndex,lineCount);
}
/* method: GetCountParagraphs */
OSStatus GetCountParagraphs(Environment *ev,
ByteOffset offset,
ByteOffset* startIndex,
UInt32* paragraphCount)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetCountParagraphs)
(this,ev,offset,startIndex,paragraphCount);
}
/* method: Cut */
OSStatus Cut(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,Cut)
(this,ev);
}
/* method: Copy */
OSStatus Copy(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,Copy)
(this,ev);
}
/* method: Paste */
OSStatus Paste(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,Paste)
(this,ev);
}
/* method: CanPaste */
boolean CanPaste(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,CanPaste)
(this,ev);
}
/* method: Clear */
OSStatus Clear(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,Clear)
(this,ev);
}
/* method: IsUndoActive */
OSStatus IsUndoActive(Environment *ev,
boolean* isActive,
EditCommandID* theCommand)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,IsUndoActive)
(this,ev,isActive,theCommand);
}
/* method: UndoLastEditCommand */
OSStatus UndoLastEditCommand(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,UndoLastEditCommand)
(this,ev);
}
/* method: DragEnteredViewedText */
OSStatus DragEnteredViewedText(Environment *ev,
DragReference theDrag,
boolean* acceptIt)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,DragEnteredViewedText)
(this,ev,theDrag,acceptIt);
}
/* method: DragInViewedText */
OSStatus DragInViewedText(Environment *ev,
DragReference theDrag)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,DragInViewedText)
(this,ev,theDrag);
}
/* method: DragLeaveViewedText */
OSStatus DragLeaveViewedText(Environment *ev,
DragReference theDrag)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,DragLeaveViewedText)
(this,ev,theDrag);
}
/* method: Drop */
OSStatus Drop(Environment *ev,
DragReference theDrag)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,Drop)
(this,ev,theDrag);
}
/* method: GetHilileRegionHandle */
OSStatus GetHilileRegionHandle(Environment *ev,
RgnHandle* theRgn)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetHilileRegionHandle)
(this,ev,theRgn);
}
/* method: SetTextChangedFlag */
OSStatus SetTextChangedFlag(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SetTextChangedFlag)
(this,ev);
}
/* method: ResetTextChangedFlag */
OSStatus ResetTextChangedFlag(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,ResetTextChangedFlag)
(this,ev);
}
/* method: IsTextChanged */
boolean IsTextChanged(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,IsTextChanged)
(this,ev);
}
/* method: MouseIsDown */
OSStatus MouseIsDown(Environment *ev,
Point* qdMouseCoordinate,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,MouseIsDown)
(this,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef);
}
/* method: MouseHasMoved */
OSStatus MouseHasMoved(Environment *ev,
Point* qdMouseCoordinate,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,MouseHasMoved)
(this,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef);
}
/* method: MouseStopped */
OSStatus MouseStopped(Environment *ev,
Point* qdMouseCoordinate,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,MouseStopped)
(this,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef);
}
/* method: MouseIsUp */
OSStatus MouseIsUp(Environment *ev,
Point* qdMouseCoordinate,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,MouseIsUp)
(this,ev,qdMouseCoordinate,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleTextAEvent */
OSStatus HandleTextAEvent(Environment *ev,
AEEventID eventID,
AppleEvent* appleEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,HandleTextAEvent)
(this,ev,eventID,appleEvent,reply,handlerTableRef);
}
/* method: TextGainKeyboardFocus */
OSStatus TextGainKeyboardFocus(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,TextGainKeyboardFocus)
(this,ev);
}
/* method: TextGiveUpKeyboardFocus */
OSStatus TextGiveUpKeyboardFocus(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,TextGiveUpKeyboardFocus)
(this,ev);
}
/* method: HasKeyboardFocus */
boolean HasKeyboardFocus(Environment *ev)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,HasKeyboardFocus)
(this,ev);
}
/* method: TextInputObjectChanged */
OSStatus TextInputObjectChanged(Environment *ev,
LocaleIdentifier theLocaleID)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,TextInputObjectChanged)
(this,ev,theLocaleID);
}
/* method: GetAETable */
OSStatus GetAETable(Environment *ev,
AEHandlerTableRef* theTable)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,GetAETable)
(this,ev,theTable);
}
/* method: SetTextMouseDownTrackActionRoutine */
OSStatus SetTextMouseDownTrackActionRoutine(Environment *ev,
MouseDownInTextTrackProcPtr theMouseTrackProcPtr,
void* userData)
{
return SOM_ResolveD(this,TSystemTextEngine,TSystemTextEngine,SetTextMouseDownTrackActionRoutine)
(this,ev,theMouseTrackProcPtr,userData);
}
/*
* -- Inherited methods
*/
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,TSystemTextEngine,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,TSystemTextEngine,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,TSystemTextEngine,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean TSystemTextEngine_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TSystemTextEngine,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean TSystemTextEngine_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TSystemTextEngine,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,TSystemTextEngine,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,TSystemTextEngine,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,TSystemTextEngine,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* TSystemTextEngine */
#endif /* SOM_TSystemTextEngine_xh */